package itheima.d01;

import java.lang.reflect.Field;
import java.text.Format;

public class Test {


    public static void saveObject(Object obj) throws Exception {


        Class<?> clazz = obj.getClass();


    }
    public static void main(String[] args) throws Exception {

        saveObject(new Cat("Tom", 2, 5.5));
        saveObject(new Student("Tim", 2, 5.5));

    }
}
